projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e13608f
)
Include <utmp.h> only if CLASH_DETECTION is
author
Karl Heuer
<kwzh@gnu.org>
Wed, 8 Apr 1998 06:48:59 +0000
(06:48 +0000)
committer
Karl Heuer
<kwzh@gnu.org>
Wed, 8 Apr 1998 06:48:59 +0000
(06:48 +0000)
defined.
src/filelock.c
patch
|
blob
|
history
diff --git
a/src/filelock.c
b/src/filelock.c
index b17fab1c6af2c7e72d87d28c9d021ab60d466c8f..134b3808acdc88ef159d3efcb68e09553a39e8e8 100644
(file)
--- a/
src/filelock.c
+++ b/
src/filelock.c
@@
-38,13
+38,14
@@
Boston, MA 02111-1307, USA. */
#include "buffer.h"
#include <time.h>
-#include <utmp.h>
#include <errno.h>
#ifndef errno
extern int errno;
#endif
#ifdef CLASH_DETECTION
+
+#include <utmp.h>
/* The strategy: to lock a file FN, create a symlink .#FN in FN's
directory, with link data `user@host.pid'. This avoids a single